package cn.hbnu;

public class RunNianJiSuan {
    public static void main(String[] args) {
        caculate(2025,9,13);
    }

    static void caculate(int year,int month,int day){
        int date[]={0,31,28,31,30,31,30,31,31,30,31,30,31};

        if (year/400==0||year/4==0&&year/100!=0){
            date[2]=29;
        }
        for (int i=1;i<=month-1;i++){
            day+=date[i];
        }
        System.out.println("今天是"+year+"年的第"+day+"天");
    }
}
